//
//  RootNavigationController.m
//  TTFriend
//
//  Created by 李正兵 on 2019/5/6.
//  Copyright © 2019 李正兵. All rights reserved.
//

#import "RootNavigationController.h"
#import "Login/LoginManager.h"
#import "UIViewController+Login.h"

@implementation RootNavigationController
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
}
- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    if (![LoginManager shareManager].islogined) {
        [self showLogin];
    }
}

- (void)showLogin {
    [self openLogin:NULL];
}
@end
